package eg2;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestProduct {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext a=new AnnotationConfigApplicationContext
         ("eg2");
        Product p=a.getBean(Product.class);
        System.out.println("p="+p);

    }
}
